<template>
  <div class="hello">
      <el-button>默认按钮</el-button>
  <el-button type="primary">主要按钮</el-button>
  <el-button type="success">成功按钮</el-button>
  <el-button type="info">信息按钮</el-button>
  <el-button type="warning">警告按钮</el-button>
  <el-button type="danger">危险按钮</el-button>
   
    
  </div>
</template>

<script>
import testApi from "@/api/test";

export default {
  name: "HelloWorld",
  props: {
    msg: String
  },
  data(){
    return{
      list:[] 
    }
  },
  methods: {
    async getList(){
      try {
        let p = await testApi.getData();
        console.log(p.data, 333);
        this.list = p.data;
      }catch(err){
        console.log(err);
      }
    }
  },
  created(){
    this.getList();
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">

</style>
